<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>修改权限信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript">
	function confirmDelOneRecord() {
		if (window.confirm("您确认要删除这条记录吗?")) {
			self.location = "del.do?id=<c:out value='${record.email }' />";
		}
	}
</script>
</head>
<body>
	<form:form method="post" action="upd.do" commandName="record">
		<table class="input_table" align="center" cellspacing="0"
			cellpadding="0">
			<tr>
				<td class="input_titile_td" width="150">邮箱:</td>
				<td class="input_content_td"><form:hidden path="email" />
					<c:out value="${record.email}" /></td>
			</tr>
			<tr>
				<td class="input_titile_td">状态（1：有效；0：无效）:</td>
				<td class="input_content_td"><form:input path="status"
						/></td>
			</tr>
			<tr>
				<td class="input_titile_td">创建时间</td>
				<td class="input_content_td"><fmt:formatDate
						value="${record.createTime}" pattern="yyyy-MM-dd HH:mm:ss" />
					&nbsp;</td>
			</tr>
			<tr>
				<td class="input_titile_td">修改时间</td>
				<td class="input_content_td"><fmt:formatDate
						value="${record.updateTime}" pattern="yyyy-MM-dd HH:mm:ss" />
					&nbsp;</td>
			</tr>

		</table>

		<table class="input_table" align="center" cellspacing="0"
			cellpadding="0">
			<tr>
				<td class="input_content_td" align="left"><input type="submit"
					value="修改" /> <input type="button"
					onclick="JavaScript: confirmDelOneRecord();" value="删除" /></td>
			</tr>
		</table>

	</form:form>
</body>
</html>
